package com.example.db.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
* @Author: AlbertHPW
* @Date: 2025/6/21 18:41
*/

@Data
@ApiModel(description = "注册实体")
public class RegisterForm {

    @NotBlank(message = "注册码不能为空")
    @Pattern(regexp = "^[0-9]{6}$",message = "注册码必须是6位数字")
    @ApiModelProperty("注册码")
    private String registerCode;

    @NotBlank(message = "微信临时授权不能为空")
    @ApiModelProperty("临时授权码")
    private String code;

    @NotBlank(message = "昵称不能为空")
    @ApiModelProperty("昵称")
    private String nickname;

    @NotBlank(message = "头像不能为空")
    @ApiModelProperty("头像")
    private String photo;
}
